package com.dawnling.datepickerdemo;

import java.text.SimpleDateFormat;
import java.util.Date;
/**
 * @author LXL1123
 * 获取当前时间
 * 2017/05/02
 */
public class CurrenTimeUtil {

	public static String getCurrenTime() {
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");       
		Date curDate = new Date(System.currentTimeMillis());//获取当前时间       
		String currenTime = format.format(curDate); 
		return currenTime;
	}
}
